package src;

public class Number {

public static void main(String[] args){
	int x=new java.util.Random().nextInt(899)+100;
	int y=x%10;
	int z=x/10%10;
	int w=x/100;
	System.out.println("number="+x+" units="+y+" dozens="+z+" hundreds="+w);
	int t=Math.max(y,z);
	int r=Math.max(t, w);
	System.out.println("Maxpoint="+r);
}
}
